#include <iostream>
#include "world.h"

void World::update() {
  worldX = static_cast<int>(view->X()) % frameWidth;
  worldY = static_cast<int>(view->Y()) % frameHeight;;
}

void World::draw() const { 

frame2.draw(0, 0, 0, frameHeight - worldY); 
  frame1.draw(worldX, worldY, 0, 0); 
  
}

